package com.mayjean.common.condition;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * Conditional on property multiple values
 *
 * @author kyleju
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Documented
@Conditional(MultipleValueConditionOnProperty.class)
public @interface ConditionalOnPropertyMultipleValues {
	String[] value();

	String prefix() default "";

	String[] name() default {};

	boolean matchIfMissing() default false;

	String[] havingValues() default {};
}
